#pragma once
#include "common.h"

namespace disk
{
  //! The size of a "sector" in bytes. This value should never change.
  const uint SECTOR_SIZE = 512;

  //! The first sector contains the MBR
  const uint PARTITION_START_SECTOR = __RPI_OS_PARTITION_START_SECTOR__;

  //! Make the data start sector 10 MiB past the partition start sector
  const uint PARTITION_DATA_START_SECTOR = __RPI_OS_PARTITION_START_SECTOR__ + 20480;

  //! Read sectors from the disk
  void read_sectors(void* out, uint64_t sector_start, uint sector_count);

  //! Write sectors to the disk
  void write_sectors(void* in, uint64_t sector_start, uint sector_count);
}
